<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript"
            src="${ctx}/appjs/enterprise/enterpriseSubmemberApply/enterpriseSubmemberApply.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <%--<link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/skins/laydate.css">--%>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.css">
    <script src="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.js"></script>
    <style>
        .ibox-body #exampleModal input, .ibox-body #exampleModal select {
            width: 100% !important;
            height: 38px !important;
        }

        #exampleModal .btn, .btn-sm {
            margin-bottom: 0;
        }

        #exampleModal .form-group {
            padding-top: 0;
            margin-bottom: 5px;
        }

        .bootstrap-table .fixed-table-container .table thead th .th-inner {
            text-align: center !important;
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return'<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>企业用户管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>企业成员列表</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });


    var has_add = 'hidden';
    var has_edit = 'hidden';
    var has_delete = 'hidden';
</script>

<%--<div shiro:hasPermission="sys:menu:add">--%>
<script type="text/javascript">
    has_add = '';
</script>
<%--</div>--%>
<%--<div shiro:hasPermission="sys:user:edit">--%>
<script type="text/javascript">
    has_edit = '';
</script>
<%--</div>--%>
<%--<div shiro:hasPermission="sys:user:remove">--%>
<script type="text/javascript">
    var has_delete = '';
</script>
<%--</div>--%>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <input id="enterpriseId" value="${enterpriseId}" type="text" hidden>
                    <div class="pull-left search col-md-2">
                        <input id="submemberName" name="submemberName" type="text" class="form-control" placeholder="企业成员姓名">
                    </div>
                    <div class="pull-left search col-md-2">
                        <input id="mobile" name="mobile" type="text" class="form-control" placeholder="手机号">
                    </div>

                    <div class="pull-left search " style="margin-left: 4px">
                        <button class="btn btn-success" onclick="enterpriseSubmemberApply.reLoad()">查询</button>
                        <button class="btn btn-success input-distance exportBtn" onclick="enterpriseSubmemberApply.exportList()">导出</button>
                    </div>
                    <div class="pull-left search " style="flex: 0;margin-left: 4px">
                        <button class="btn btn-primary" onclick="enterpriseSubmemberApply.add()">新增</button>
                    </div>
                    <div class="pull-left search " style="flex: 0;margin-left: 4px" <c:if test="${role.roleType eq '3'}">hidden="hidden"</c:if> >
                        <button type="button" class="btn btn-primary" onclick="enterpriseSubmemberApply.batchHandleRows()">
                            转渠道商
                        </button>
                    </div>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>

                <form class='layui-form' id="open-main" style="display: none">
                    <div class='form-horizontal layui-form' style='width:100%;padding:10px;text-align: left'>
                        <div style='border-bottom: 0.5px solid #ccc;padding-bottom: 20px'>
                            <h1 id="submemberToChannel" style='font-size: 16px;color: #000'>确定变更企业成员身份信息？</h1>
                        </div>
                    </div>
                </form>


                <%--  模态框  --%>
                <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog"
                     aria-labelledby="exampleModalLabel">
                    <div class="modal-dialog" role="document">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                        aria-hidden="true"></span></button>
                                <h4 class="modal-title" id="exampleModalLabel" data-dismiss="modal" aria-label="Close">关闭</h4>
                            </div>
                            <div class="modal-body">
                                <form id="contentForm" class="layui-form">
                                    <div class="form-group row">
                                        <label class="col-sm-4 col-form-label text-right">审核状态:</label>
                                        <div class="col-sm-8">
                                            <select id="status" name="status" class="form-control">
                                                <option value="1">审核通过</option>
                                                <option value="2">审核不通过</option>
                                            </select>
                                        </div>
                                    </div>

                                </form>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                <button type="button" class="btn btn-success" id="submitButton">确定</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<script type="text/javascript">
    enterpriseSubmemberApply.init();
    layui.use(['form', 'jquery', 'tree', 'laydate', 'util'], function () {
    });
</script>
</body>
</html>
